import Axios from "/@/utils/Axios";


export function getAlbumType(data: any): Promise<any> {
  return Axios.get("/backapi/albumTypes", data);
}

export function addAlbumType(data: any): Promise<any> {
  return Axios.post("/backapi/albumTypes", data);
}

export function editAlbumType(data: any): Promise<any> {
  return Axios.put(`/backapi/albumTypes/${data.id}`, data);
}

export function updateAlbumTypeStatus(data: any): Promise<any> {
  return Axios.patch(`/backapi/albumTypes/${data.id}/status`, data);
}
